package com.pet.shop.mappers.product;

import com.github.pagehelper.Page;
import com.pet.shop.dto.PageDto;
import com.pet.shop.entity.product.Product;

import java.util.List;
import java.util.Map;

public interface ProductMapper {

    int delete(Long id);

    int insert(Product record);

    Product get(Long id);

    int update(Product record);

    Page<Product> queryPage(PageDto<Product> page);

    List<Product> queryProductList(Map<String,Object> map);
}